package com.csthink.web.infrastructure.security.authorization.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author <a href="mailto:security.2009@live.cn">Mars</a>
 * @since 2023-09-13
 */
@Slf4j
@NoArgsConstructor
@AllArgsConstructor
@Data
public class PermissionAuthority implements GrantedAuthority {

    private static final long serialVersionUID = -3605896777512792704L;

    private String permission;

    @Override
    public String getAuthority() {
        return this.permission;
    }

}
